<template>
	<view class="ChatBox">
		<view>
			<view style="position: fixed;top: 0;left: 0;z-index: 999;padding: 0;width: 100%;background: #F3F3F3;" v-if="topList.length>0">
				<swiper :indicator-dots="false" :autoplay="false" :interval="1000" style="width: 100%;height: 236upx;">
					<swiper-item v-for="(item,index) in topList" :key="index" style="width: 100%;" v-if="item.shop_evaluation_order_id||item.shop_evaluation_id">
						<view class="swiper-item" v-if="item.mainUser.id!=userId" @click.stop="toOrderInfo" :data-index="index">
							<view class="orderInfo" v-if="item.type==4&&!item.shop_evaluation_order_id&&item.ShopEvaluation.id" style="width: 100%;border-radius: 0;padding: 32upx 40upx 24upx;">
								<view class="orderInfoT" style="padding: 0;">
									<view class="orderInfoTT" v-if="item.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluation.ShopEvaluationExampleImage.length>0" style="width: 104upx;height: 104upx;margin-right: 24upx;" :style="{'background-image': 'url('+getImage(item.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
									<view class="orderInfoTR" style="width: calc(100% - 128upx);height: 104upx;display: flex;flex-direction: column;justify-content: center;">
										<view class="proName" style="font-size: 30upx;font-weight: bold;display: flex;align-items: center;justify-content: space-between;">
											<view style="width: calc(100% - 70upx);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{item.ShopEvaluation.title}}</view>
											<image src="../../static/new/next.png" style="width: 40upx;height: 40upx;"></image>
										</view>
										<view class="proPrice" style="font-size: 30upx;display: flex;align-items: center;margin-bottom: 0;">
											<view class="platformView1" style="background: #260A20;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==1">
												<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
											</view>
											<view class="platformView1" style="background: #F40A0B;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==2">
												<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
											</view>
											<view class="platformView1" style="background: #FFD974;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==3">
												<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
											</view>
											<view class="platformView1" style="background: #F36326;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==4">
												<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
											</view>
											<view class="proPriceCon">￥{{item.ShopEvaluation.talent_money}}</view>
										</view>
										<!-- <view class="proMsg">
											<view>要求：</view>
											<view>{{item.ShopEvaluation.content}}</view>
										</view> -->
									</view>
								</view>
								<view class="orderInfoB" style="border-top: none;margin-top: 16upx;position: relative;">
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.is_accept==0">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">将自动过期</view>
									</view>
									<view v-if="item.is_accept==0" style="padding: 0;" @click.stop="refuse" :data-id="item.id" :data-ids="item.shop_evaluation_id"><view class="operaBtnCancel1" style="background: #D0D0D0;color: #333333;">拒绝邀请</view></view>
									<view v-if="item.is_accept==2" style="padding: 0;"><view class="operaBtnCancel1">已拒绝</view></view>
									<view v-if="item.is_accept==0" style="padding: 0;" @click.stop="accept" :data-money="item.ShopEvaluation.frozen_money" :data-id="item.shop_evaluation_id" :data-ids="item.shop_id"><view class="operaBtn1">确认邀请</view></view>
									<view v-if="item.is_accept==1" style="padding: 0;"><view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商家确认</view></view>
									<view v-if="item.is_accept==3" style="padding: 0;"><view class="operaBtnCancel1">已过期</view></view>
								</view>

							</view>
							<view class="orderInfo" v-if="item.type==4&&item.shop_evaluation_order_id&&item.ShopEvaluationOrder.id" style="width: 100%;border-radius: 0;padding: 32upx 40upx 24upx;">
								<view class="orderInfoT" style="padding: 0;">
									<view class="orderInfoTT" style="width: 104upx;height: 104upx;margin-right: 24upx;" v-if="item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
									<view class="orderInfoTR" style="width: calc(100% - 128upx);height: 104upx;display: flex;flex-direction: column;justify-content: center;">
										<view class="proName" style="font-size: 30upx;font-weight: bold;display: flex;align-items: center;justify-content: space-between;">
											<view style="width: calc(100% - 70upx);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{item.ShopEvaluationOrder.ShopEvaluation.title}}</view>
											<image src="../../static/new/next.png" style="width: 40upx;height: 40upx;"></image>
										</view>
										<view class="proPrice" style="font-size: 30upx;display: flex;align-items: center;margin-bottom: 0;">
											<view class="platformView1" style="background: #260A20;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==1">
												<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
											</view>
											<view class="platformView1" style="background: #F40A0B;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==2">
												<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
											</view>
											<view class="platformView1" style="background: #FFD974;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==3">
												<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
											</view>
											<view class="platformView1" style="background: #F36326;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==4">
												<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
											</view>
											<view class="proPriceCon">￥{{item.ShopEvaluationOrder.ShopEvaluation.talent_money}}</view>

										</view>
										<!-- <view class="proMsg">
											<view>要求：</view>
											<view>{{item.ShopEvaluationOrder.ShopEvaluation.content}}</view>
										</view> -->
									</view>
								</view>
								<view class="orderInfoB" style="border-top: 0;margin-top: 16upx;position: relative;">
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==0">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动取消</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==1">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动取消</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==2">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动确认</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==3">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后订单将关闭</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==4">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将扣除冻结款关闭订单</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==5">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将默认可发布</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==6">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将扣除冻结款关闭订单</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==7">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动确认</view>
									</view>
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==0&&item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商家确认</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==0&&!item.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" :data-money="item.ShopEvaluationOrder.money" @click.stop="sureOrder" style="padding: 0;">
										<view class="operaBtn1">确认订单</view>
									</view>
									<!--  -->
									<!--  -->

									<picker mode="date" :start="startTime" :end="endTime" @click.stop="" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id&&!item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1">预约到店</view>
										</view>
									</picker>
									<picker mode="date" :start="startTime" @click.stop="" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1">修改预约</view>
										</view>
									</picker>
									<view v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待预约</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" style="padding: 0;" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商户确认</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="sureAppoint" data-type="refuse" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">需要修改</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="sureAppoint" data-type="pass" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">确认预约</view>
									</view>
									<!--  -->
									<!--  -->
									<picker mode="date" :start="startTime" style="margin-right: 30upx;" @click.stop="" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">修改预约</view>
										</view>
									</picker>
									<view v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id" style="padding: 0;" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">确认到店</view>
									</view>

									<view v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待达人到店</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id&&!item.ShopEvaluationOrder.share_id" style="padding: 0;" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
										<view class="operaBtn1">交稿</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id&&item.ShopEvaluationOrder.share_id" style="padding: 0;" :data-ids="item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
										<view class="operaBtn1">修改稿件</view>
									</view>

									<view v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待交稿</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待审核</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" style="padding: 0;" :data-type="item.ShopEvaluationOrder.imgType" :data-id="item.ShopEvaluationOrder.share_id" @click.stop="checkMsg">
										<view class="operaBtn1">查看</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="surePass" data-type="refuse" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">需修改</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="surePass" data-type="pass" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">可发布</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type>=6&&item.shop_evaluation_id" style="padding: 0;" @click.stop="toShUser" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">申诉</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==6&&item.shop_evaluation_id" style="padding: 0;" @click.stop="sureRelease" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">我已发布</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==6&&!item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待发布</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商家查收</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="noOver" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">稿件异常</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="sureOver" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">完成查收</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==8&&item.shop_evaluation_id" style="padding: 0;">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">已完成</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type==8&&!item.shop_evaluation_id" style="padding: 0;" @click.stop="toSh" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">申请售后</view>
									</view>
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==9" style="padding: 0;"><view class="operaBtnCancel1">已过期</view></view>
								</view>
								<!-- <view class="platformView" style="background: #260A20;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==1">
									<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
								</view>
								<view class="platformView" style="background: #F40A0B;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==2">
									<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
								</view>
								<view class="platformView" style="background: #FFD974;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==3">
									<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
								</view>
								<view class="platformView" style="background: #F36326;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==4">
									<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
								</view> -->
							</view>
						</view>
						<view class="swiper-item" v-else @click.stop="toOrderInfo" :data-index="index">
							<view class="orderInfo" v-if="item.type==4&&!item.shop_evaluation_order_id&&item.ShopEvaluation.id" style="width: 100%;border-radius: 0;padding: 32upx 40upx 24upx;">
								<view class="orderInfoT" style="padding: 0;">
									<view class="orderInfoTT" style="width: 104upx;height: 104upx;margin-right: 24upx;" v-if="item.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
									<view class="orderInfoTR" style="width: calc(100% - 128upx);height: 104upx;display: flex;flex-direction: column;justify-content: center;">
										<view class="proName" style="font-size: 30upx;font-weight: bold;display: flex;align-items: center;justify-content: space-between;">
											<view style="width: calc(100% - 70upx);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{item.ShopEvaluation.title}}</view>
											<image src="../../static/new/next.png" style="width: 40upx;height: 40upx;"></image>
										</view>
										<view class="proPrice" style="font-size: 30upx;display: flex;align-items: center;margin-bottom: 0;">
											<view class="platformView1" style="background: #260A20;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==1">
												<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
											</view>
											<view class="platformView1" style="background: #F40A0B;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==2">
												<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
											</view>
											<view class="platformView1" style="background: #FFD974;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==3">
												<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
											</view>
											<view class="platformView1" style="background: #F36326;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==4">
												<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
											</view>
											<view class="proPriceCon">￥{{item.ShopEvaluation.talent_money}}</view>
										</view>
									</view>

								</view>
								<view class="orderInfoB" style="border-top: none;margin-top: 16upx;position: relative;">
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.is_accept==0">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">将自动过期</view>
									</view>
									<view style="padding: 0;" v-if="item.is_accept==3">
										<view class="operaBtnCancel1">已过期</view>
									</view>
									<!-- <view class="operaBtnCancel">拒绝邀请</view> -->
									<view style="padding: 0;" v-else>
										<view class="operaBtn1">已邀请</view>
									</view>
								</view>

							</view>
							<view class="orderInfo" v-if="item.type==4&&item.shop_evaluation_order_id&&item.ShopEvaluationOrder.id" style="width: 100%;border-radius: 0;padding: 32upx 40upx 24upx;">
								<view class="orderInfoT" style="padding: 0;">
									<view class="orderInfoTT" style="width: 104upx;height: 104upx;margin-right: 24upx;" v-if="item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
									<view class="orderInfoTR" style="width: calc(100% - 128upx);height: 104upx;display: flex;flex-direction: column;justify-content: center;">
										<view class="proName" style="font-size: 30upx;font-weight: bold;display: flex;align-items: center;justify-content: space-between;">
											<view style="width: calc(100% - 70upx);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{item.ShopEvaluationOrder.ShopEvaluation.title}}</view>
											<image src="../../static/new/next.png" style="width: 40upx;height: 40upx;"></image>
										</view>
										<view class="proPrice" style="font-size: 30upx;display: flex;align-items: center;margin-bottom: 0;">
											<view class="platformView1" style="background: #260A20;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==1">
												<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
											</view>
											<view class="platformView1" style="background: #F40A0B;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==2">
												<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
											</view>
											<view class="platformView1" style="background: #FFD974;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==3">
												<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
											</view>
											<view class="platformView1" style="background: #F36326;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==4">
												<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
											</view>
											<view class="proPriceCon">￥{{item.ShopEvaluationOrder.ShopEvaluation.talent_money}}</view>

										</view>
									</view>
								</view>
								<view class="orderInfoB" style="border-top: 0;margin-top: 16upx;position: relative;">
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==0">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动取消</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==1">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动取消</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==2">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动确认</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==3">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后订单将关闭</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==4">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将扣除冻结款关闭订单</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==5">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将默认可发布</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==6">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将扣除冻结款关闭订单</view>
									</view>
									<view style="position: absolute;left: 0;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;" v-if="item.ShopEvaluationOrder.type==7">
										<view style="font-size: 20upx;color: red;margin-bottom: 10upx;line-height: 20upx;">{{item.timeStr}}</view>
										<view style="font-size: 20upx;color: red;line-height: 20upx;">后将自动确认</view>
									</view>
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==0&&item.shop_evaluation_id" @click.stop="sureOrder" :data-id="item.shop_evaluation_order_id" :data-money="item.ShopEvaluationOrder.money">
										<view class="operaBtn1">确认订单</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==0&&!item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商家确认</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待预约</view>
									</view>

									<picker mode="date" :start="startTime" @click.stop="" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id&&!item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1">预约到店</view>
										</view>
									</picker>
									<picker mode="date" :start="startTime" @click.stop="" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1">修改预约</view>
										</view>
									</picker>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" @click.stop="" v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" @click.stop="sureAppoint" data-type="refuse" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">需要修改</view>
									</view>
									<view style="padding: 0;" @click.stop="" v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" @click.stop="sureAppoint" data-type="pass" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">确认预约</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待商家确认</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待达人到店</view>
									</view>
									<picker mode="date" @click.stop="" style="margin-right: 30upx;" :start="startTime" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
										<view style="padding: 0;">
											<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">修改预约</view>
										</view>
									</picker>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">确认到店</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待交稿</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id&&!item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
										<view class="operaBtn1">交稿</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.share_id" :data-ids="item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
										<view class="operaBtn1">修改稿件</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" :data-type="item.ShopEvaluationOrder.imgType" :data-id="item.ShopEvaluationOrder.share_id" @click.stop="checkMsg">
										<view class="operaBtn1">查看</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" @click.stop="surePass" data-type="refuse" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">需修改</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" @click.stop="surePass" data-type="pass" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">可发布</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待审核</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==6&&item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待发布</view>
									</view>
									<view v-if="item.ShopEvaluationOrder.type>=6&&item.shop_evaluation_id" style="padding: 0;" @click.stop="toShUser" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">申诉</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==6&&!item.shop_evaluation_id" @click.stop="sureRelease" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">我已发布</view>
									</view>
									<!--  -->
									<!--  -->
									<view v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id" style="padding: 0;" @click.stop="noOver" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">稿件异常</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id" @click.stop="sureOver" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">完成查收</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">待查收</view>
									</view>
									<!--  -->
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==8&&item.shop_evaluation_id" @click.stop="toSh" :data-id="item.shop_evaluation_order_id">
										<view class="operaBtn1">申请售后</view>
									</view>
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==8&&!item.shop_evaluation_id">
										<view class="operaBtn1" style="background: #D0D0D0;color: #333333;">已完成</view>
									</view>
									<!--  -->
									<view style="padding: 0;" v-if="item.ShopEvaluationOrder.type==9"><view class="operaBtnCancel1">已过期</view></view>
								</view>
							</view>
						</view>
					</swiper-item>
				</swiper>
			</view>
			<view :class="['ChatBoxBox',topflag?'ChatBoxBoxTwo':'']">
				<view class="ChatCont">
					<view class="msgItem" v-for="(item,index) in list" :key="index" :id="'chatItem'+item.id">
						<view v-if="item.is_tips!=1">
							<view class="msgItemT" v-if="item.timeFlag">{{item.create_time}}</view>
							<view class="msgItemBSelf" v-if="item.mainUser.id!=userId">
								<!-- <image :src="getImage(item.mainUser.image_url)" class="avator" :data-id="item.mainUser.id" @click.stop="toMine"></image> -->
								<view :style="{'background-image':'url('+getImage(item.mainUser.image_url)+')'}" class="avator" :data-id="item.mainUser.id" @click.stop="toMine"></view>
								<view style="position: relative;" @click.stop="previewVideo" :data-file="getImage(item.file)" @longtap="downloadVideo" v-if="item.type==3">
									<!-- <image :src="getVideoUrl(item.file)" class="contentVideo"></image> -->
									<view class="contentVideo" :style="{'background-image':'url('+getVideoUrl(item.file)+')'}"></view>
									<view style="border-radius: 50%;display: flex;align-items: center;justify-content: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);background: rgba(0,0,0,.5);width: 80upx;height: 80upx;">
										<image src="../../static/video/play.png" style="width: 60upx;height: 60upx;"></image>
									</view>
								</view>
								<view class="sendNews" v-if="item.type==1" @longpress="copyTxt" :data-txt="item.news">{{item.news}}</view>
								<view class="contentImg" v-if="item.type==2" :style="{'background-image': 'url('+getImage(item.file)+')'}" @click.stop="previewImg" :data-url="getImage(item.file)"></view>
								<view class="orderInfo" v-if="item.type==4&&!item.shop_evaluation_order_id&&item.ShopEvaluation.id">
									<view class="orderInfoT">
										<view class="orderInfoTT" :style="{'background-image': 'url('+getImage(item.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
										<view class="orderInfoTR">
											<view class="proName">{{item.ShopEvaluation.title}}</view>
											<view class="proPrice">￥{{item.ShopEvaluation.talent_money}}</view>
											<view class="proMsg">
												<view>要求：</view>
												<view>{{item.ShopEvaluation.content}}</view>
											</view>
										</view>
									</view>
									<view class="orderInfoB">
										<view v-if="item.is_accept==0||!item.is_accept"><view class="operaBtnCancel" @click.stop="refuse" :data-id="item.id" :data-ids="item.shop_evaluation_id">拒绝邀请</view></view>
										<view v-if="item.is_accept==2"><view class="operaBtnCancel">已拒绝</view></view>
										<view v-if="item.is_accept==0||!item.is_accept"><view class="operaBtn" @click.stop="accept" :data-money="item.ShopEvaluation.frozen_money" :data-id="item.shop_evaluation_id" :data-ids="item.shop_id">确认邀请</view></view>
										<view v-if="item.is_accept==1"><view class="operaBtn" style="background: #D0D0D0;color: #333333;">待商家确认</view></view>
										<view v-if="item.is_accept==3"><view class="operaBtnCancel">已过期</view></view>
									</view>
									<view class="platformView" style="background: #260A20;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==1">
										<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
									</view>
									<view class="platformView" style="background: #F40A0B;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==2">
										<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
									</view>
									<view class="platformView" style="background: #FFD974;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==3">
										<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
									</view>
									<view class="platformView" style="background: #F36326;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==4">
										<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
									</view>
								</view>
								<view class="orderInfo" v-if="item.type==4&&item.shop_evaluation_order_id&&item.ShopEvaluationOrder.id">
									<view class="orderInfoT">
										<view class="orderInfoTT" v-if="item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
										<view class="orderInfoTR">
											<view class="proName">{{item.ShopEvaluationOrder.ShopEvaluation.title}}</view>
											<view class="proPrice">￥{{item.ShopEvaluationOrder.ShopEvaluation.talent_money}}</view>
											<view class="proMsg">
												<view>要求：</view>
												<view>{{item.ShopEvaluationOrder.ShopEvaluation.content}}</view>
											</view>
										</view>
									</view>
									<view class="orderInfoB">

										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==0&&item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待商家确认</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==0&&!item.shop_evaluation_id" @click.stop="sureOrder" :data-id="item.shop_evaluation_order_id" :data-money="item.ShopEvaluationOrder.money">
											<view class="operaBtn">确认订单</view>
										</view>
										<!--  -->
										<!--  -->
										<picker mode="date" :start="startTime" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id&&!item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn">预约到店</view>
											</view>
										</picker>
										<picker mode="date" :start="startTime" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn">修改预约</view>
											</view>
										</picker>
										<view v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待预约</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待商家确认</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" @click.stop="sureAppoint" data-type="refuse" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">需要修改</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" @click.stop="sureAppoint" data-type="pass" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">确认预约</view>
										</view>
										<!--  -->
										<!--  -->
										<picker mode="date" :start="startTime" style="margin-right: 30upx;" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn" style="background: #D0D0D0;color: #333333;">修改预约</view>
											</view>
										</picker>
										<view v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id">确认到店</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待达人到店</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id&&!item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
											<view class="operaBtn" v-if="item.shop_evaluation_id">交稿</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id&&item.ShopEvaluationOrder.share_id" :data-ids="item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
											<view class="operaBtn" v-if="item.shop_evaluation_id">修改稿件</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待交稿</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待审核</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" :data-type="item.ShopEvaluationOrder.imgType" :data-id="item.ShopEvaluationOrder.share_id" @click.stop="checkMsg">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">查看</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" @click.stop="surePass" data-type="refuse" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">需修改</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id" @click.stop="surePass" data-type="pass" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">可发布</view>
										</view>

										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type>=6&&item.shop_evaluation_id" @click.stop="toShUser" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">申诉</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==6&&item.shop_evaluation_id" @click.stop="sureRelease" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id">我已发布</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==6&&!item.shop_evaluation_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待发布</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">待查收</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id" @click.stop="noOver" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">稿件异常</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id" @click.stop="sureOver" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">完成查收</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==8&&item.shop_evaluation_id">
											<view class="operaBtn" v-if="item.shop_evaluation_id" style="background: #D0D0D0;color: #333333;">已完成</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==8&&!item.shop_evaluation_id" @click.stop="toSh" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" v-if="!item.shop_evaluation_id">申请售后</view>
										</view>
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==9"><view class="operaBtnCancel">已过期</view></view>
									</view>
									<view class="platformView" style="background: #260A20;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==1">
										<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
									</view>
									<view class="platformView" style="background: #F40A0B;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==2">
										<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
									</view>
									<view class="platformView" style="background: #FFD974;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==3">
										<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
									</view>
									<view class="platformView" style="background: #F36326;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==4">
										<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
									</view>
								</view>
							</view>
							<view class="msgItemBOther" v-else>
								<view class="orderInfo" v-if="item.type==4&&!item.shop_evaluation_order_id&&item.ShopEvaluation.id">
									<view class="orderInfoT">
										<view class="orderInfoTT" v-if="item.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
										<view class="orderInfoTR">
											<view class="proName">{{item.ShopEvaluation.title}}</view>
											<view class="proPrice">￥{{item.ShopEvaluation.talent_money}}</view>
											<view class="proMsg">
												<view>要求：</view>
												<view>{{item.ShopEvaluation.content}}</view>
											</view>
										</view>
									</view>
									<view class="orderInfoB">
										<!-- <view class="operaBtnCancel">拒绝邀请</view> -->
										<view v-if="item.is_accept==3">
											<view class="operaBtn">已过期</view>
										</view>
										<view v-else>
											<view class="operaBtn">已邀请</view>
										</view>
									</view>
									<view class="platformView" style="background: #260A20;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==1">
										<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
									</view>
									<view class="platformView" style="background: #F40A0B;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==2">
										<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
									</view>
									<view class="platformView" style="background: #FFD974;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==3">
										<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
									</view>
									<view class="platformView" style="background: #F36326;" v-if="!item.shop_evaluation_order_id&&item.shop_evaluation_id&&item.ShopEvaluation.platform==4">
										<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
									</view>
								</view>
								<view class="orderInfo" v-if="item.type==4&&item.shop_evaluation_order_id&&item.ShopEvaluationOrder.id">
									<view class="orderInfoT">
										<view class="orderInfoTT" v-if="item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage&&item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage.length>0" :style="{'background-image': 'url('+getImage(item.ShopEvaluationOrder.ShopEvaluation.ShopEvaluationExampleImage[0].image_url)+')'}"></view>
										<view class="orderInfoTR">
											<view class="proName">{{item.ShopEvaluationOrder.ShopEvaluation.title}}</view>
											<view class="proPrice">￥{{item.ShopEvaluationOrder.ShopEvaluation.talent_money}}</view>
											<view class="proMsg">
												<view>要求：</view>
												<view>{{item.ShopEvaluationOrder.ShopEvaluation.content}}</view>
											</view>
										</view>
									</view>
									<view class="orderInfoB">
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==0&&item.shop_evaluation_id" @click.stop="sureOrder" :data-id="item.shop_evaluation_order_id" :data-money="item.ShopEvaluationOrder.money">
											<view class="operaBtn">确认订单</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==0&&!item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待商家确认</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==1&&item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待预约</view>
										</view>
										<picker mode="date" :start="startTime" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id&&!item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn">预约到店</view>
											</view>
										</picker>
										<picker mode="date" :start="startTime" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==1&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn">修改预约</view>
											</view>
										</picker>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" @click.stop="sureAppoint" data-type="refuse" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">需要修改</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==2&&item.shop_evaluation_id" @click.stop="sureAppoint" data-type="pass" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">确认预约</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==2&&!item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待商家确认</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==3&&item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待达人到店</view>
										</view>
										<picker mode="date" :start="startTime" style="margin-right: 30upx;" :end="endTime" @change="selectTime" :data-pid="item.ShopEvaluationOrder.shop_evaluation_id" :data-id="item.shop_evaluation_order_id" v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.appointment_time">
											<view style="padding: 16upx 0;">
												<view class="operaBtn" style="background: #D0D0D0;color: #333333;">修改预约</view>
											</view>
										</picker>
										<view v-if="item.ShopEvaluationOrder.type==3&&!item.shop_evaluation_id" @click.stop="sureToStore" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">确认到店</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==4&&item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待交稿</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id&&!item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
											<view class="operaBtn">交稿</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==4&&!item.shop_evaluation_id&&item.ShopEvaluationOrder.share_id" :data-ids="item.ShopEvaluationOrder.share_id" :data-id="item.shop_evaluation_order_id" @click.stop="toRelease">
											<view class="operaBtn">修改稿件</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" :data-type="item.ShopEvaluationOrder.imgType" :data-id="item.ShopEvaluationOrder.share_id" @click.stop="checkMsg">
											<view class="operaBtn">查看</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" @click.stop="surePass" data-type="refuse" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">需修改</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==5&&item.shop_evaluation_id" @click.stop="surePass" data-type="pass" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">可发布</view>
										</view>

										<view v-if="item.ShopEvaluationOrder.type==5&&!item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待审核</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==6&&item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待发布</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type>=6&&item.shop_evaluation_id" @click.stop="toShUser" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">申诉</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==6&&!item.shop_evaluation_id" @click.stop="sureRelease" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">我已发布</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id" @click.stop="noOver" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">稿件异常</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==7&&item.shop_evaluation_id" @click.stop="sureOver" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">完成查收</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==7&&!item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">待查收</view>
										</view>
										<!--  -->
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==8&&item.shop_evaluation_id" @click.stop="toSh" :data-id="item.shop_evaluation_order_id">
											<view class="operaBtn">申请售后</view>
										</view>
										<view v-if="item.ShopEvaluationOrder.type==8&&!item.shop_evaluation_id">
											<view class="operaBtn" style="background: #D0D0D0;color: #333333;">已完成</view>
										</view>
										<!--  -->
										<view v-if="item.ShopEvaluationOrder.type==9"><view class="operaBtnCancel" style="background: #D0D0D0;color: #333333;">已过期</view></view>
									</view>
									<view class="platformView" style="background: #260A20;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==1">
										<image src="../../static/mine/douyin_white.png" style="width: 24upx;height: 24upx;"></image>
									</view>
									<view class="platformView" style="background: #F40A0B;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==2">
										<image src="../../static/mine/xiaohongshu_white.png" style="width: 38upx;height: 16upx;"></image>
									</view>
									<view class="platformView" style="background: #FFD974;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==3">
										<image src="../../static/mine/weibo_white.png" style="width: 24upx;height: 22upx;"></image>
									</view>
									<view class="platformView" style="background: #F36326;" v-if="item.shop_evaluation_order_id!=0&&item.ShopEvaluationOrder.ShopEvaluation.platform==4">
										<image src="../../static/mine/dazong_white.png" style="width: 20upx;height: 20upx;"></image>
									</view>
								</view>
								<view class="sendNews" v-if="item.type==1" @longpress="copyTxt" :data-txt="item.news">{{item.news}}</view>
								<view class="contentImg" v-if="item.type==2" :style="{'background-image': 'url('+getImage(item.file)+')'}" @click.stop="previewImg" :data-url="getImage(item.file)"></view>

								<view style="position: relative;" @click.stop="previewVideo" :data-file="getImage(item.file)" @longtap="downloadVideo" v-if="item.type==3">
									<!-- <image :src="getVideoUrl(item.file)" class="contentVideo"></image> -->
									<view class="contentVideo" :style="{'background-image':'url('+getVideoUrl(item.file)+')'}"></view>
									<view style="border-radius: 50%;display: flex;align-items: center;justify-content: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);background: rgba(0,0,0,.5);width: 80upx;height: 80upx;">
										<image src="../../static/video/play.png" style="width: 60upx;height: 60upx;"></image>
									</view>
								</view>
								<view :style="{'background-image':'url('+getImage(item.mainUser.image_url)+')'}" class="avator" :data-id="item.mainUser.id" @click.stop="toMine"></view>
								<!-- <image :src="getImage(item.mainUser.image_url)" class="avator" :data-id="item.mainUser.id" @click.stop="toMine"></image> -->
							</view>
						</view>
						<view v-if="item.is_tips==1" style="color: red;font-size: 24upx;text-align: center;" @longpress="copyTxt" :data-txt="item.news">{{item.news}}</view>
					</view>
				</view>
				<view class="ChatBox_B" id="menuList1">
					<view class="inputBox">
						<view @click.stop="getTabH">
							<u-icon name="plus-circle" size="60" color="#515151"></u-icon>
						</view>
						<textarea type="text" placeholder="输入内容" @focus="getFocus" :show-confirm-bar="false" v-model="news" :auto-height="true" maxlength="2000">

						</textarea>
						<!-- <button class="sendTxt" @touchend.stop.prevent="sendMsg">发送</button> -->
						<button class="sendTxt" @click.stop="sendMsg">发送</button>

					</view>
					<view class="menuList" v-if="ismenu">
						<view class="menuItem" @click.stop="SelectPicture">
							<view class="menuImage">
								<u-icon name="photo-fill" size="48" color="#515151"></u-icon>
							</view>
							<view class="menuName">相册</view>
						</view>
						<view class="menuItem" @click.stop="SelectVideo">
							<view class="menuImage">
								<image src="/static/new/video.png" mode=""></image>
							</view>
							<view class="menuName">视频</view>
						</view>
						<view class="menuItem" @click.stop="toEvaluation">
							<view class="menuImage">
								<image src="/static/new/Evaluation.png" mode=""></image>
							</view>
							<view class="menuName">测评</view>
						</view>
						<view class="menuItem" @click.stop="toCoustomer">
							<view class="menuImage">
								<image src="/static/index/coustomer.png" mode=""></image>
							</view>
							<view class="menuName">举报</view>
						</view>
					</view>
				</view>
				<view :style="{'height':ismenuHeight+15+'px'}"></view>
			</view>
		</view>
		<view class="toastMark" v-if="markFlag" @click.stop="markFlag=false"></view>
		<view class="toastWrap" v-if="markFlag">
			<view class="toastWrapTit">
				报名将冻结您的余额<text>{{djMoney}}</text>元
			</view>
			<view class="toastWrapCon">到店后逾期不交稿或交稿后删稿，该金额将扣除用于结付给商户；正常交稿后7天无商户的删稿投诉，该金额与稿费同步解冻。</view>
			<view class="toastBtn">
				<view class="later" @click.stop="markFlag=false">稍后</view>
				<view class="onSure" @click.stop="toSubmit">确认</view>
			</view>
		</view>
		<view class="toastMark" v-if="sureToStoreFlag" @click.stop="sureToStoreFlag=false"></view>
		<view class="toastWrap" v-if="sureToStoreFlag">
			<view class="toastWrapTit" style="text-align: center;">
				确认到店
			</view>
			<view class="toastWrapCon" style="color: #333333;text-align: center;">如确认到店但无法交稿将</view>
			<view class="toastWrapCon" style="color: red;margin-top: 30upx;text-align: center;">扣除测评冻结金额</view>
			<view class="toastBtn">
				<view class="later" @click.stop="sureToStoreFlag=false">暂未到店</view>
				<view class="onSure" @click.stop="sureToStoreFun">我已到店</view>
			</view>
		</view>
		<number-jpan :length="6" @closeChange="closeChange($event)" :showNum="false" ref="numberPad"></number-jpan>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	const app = getApp();
	import {wxPayment,zfbPayment} from "@/utils/app.js";
	import numberJpan from "@/components/numberJpan/numberJpan.vue";
	export default {
		data() {
			return {
				markFlag:false,
				ismenu:false,
				progress:0,
				imageUrl:"",
				animationData:{},
				hideanimation:false,
				ind:1,
				videoObj:{},
				type:"",
				id:"",
				topflag:true,
				videoUrl:"",
				page:1,
				news:"",
				moreFlag:false,
				list:[],
				userId:"",
				ismenuHeight:0,
				acceptId:"",
				acceptShopId:"",
				proId:"",
				orderList:[],
				sureOrderData:{},
				startTime:"",
				endTime:"",
				orderIds:"",
				appointment_time:"",
				djMoney:0,
				topList:[],
				sureToStoreFlag:false,
				nowOrderId:"",
				timerList:[],
				xxFlag:false,
				selectorTxt:"",
				hideFlag:false,
				inpFlag:false,
				oneFlag:false
			}
		},
		components:{'number-jpan':numberJpan},
		onLoad(options) {
			this.type = options.type;
			this.id = options.id;
			this.userId = uni.getStorageSync("userId");
			if(options.proid){
				this.proId = options.proid;
			}
			this.startTime = app.$vm.getTime(new Date().getTime(),"-","day");
			this.endTime = app.$vm.getTime(new Date().getTime()+30*24*60*60*1000,"-","day");
			this.getUser();
			this.$nextTick(()=>{
				this.getIsMenuH().then(reg=>{
					this.initMessage();
					this.getMessage();
				});

			})
		},
		onHide() {
			this.oneFlag = true;
		},
		onShow() {
			// clearInterval(this.timer);

			if(app.$vm.globalData.hideFlag){
				// this.hideFlag = false;
				Promise.all([app.$vm.loadMsg()]).then(m=>{
					this.$nextTick(()=>{
						this.getIsMenuH().then(reg=>{
							this.initMessage();
							this.getMessage();
						});
					})
				})
			}else{
				if(!this.oneFlag){
					return false;
				}
				this.oneFlag = false;
				this.$nextTick(()=>{
					this.getIsMenuH().then(reg=>{
						this.initMessage();
						this.getMessage();
					});
				})
			}
		},
		onHide() {
			// this.hideFlag = true;
		},
		onPageScroll(e){
			if(e.scrollTop<5&&this.moreFlag){
				this.moreFlag = false;
				this.page = this.page + 1;
				this.getMessage();
			}
		},
		methods: {
			getFocus(){
				// uni.pageScrollTo({
				// 	scrollTop:99999999999999999999999
				// })
			},
			toCoustomer(){
				uni.navigateTo({
					url:"/pages/pagethree/pages/explain/explain"
				})
			},
			copyTxt(e){
				let txt = e.target.dataset.txt || e.currentTarget.dataset.txt;
				uni.showActionSheet({
					itemList:["复制"],
					success:res=>{
						if(res.tapIndex==0){
							uni.setClipboardData({
								data:txt,
								success:result=>{

								}
							})
						}
					}
				})
			},
			toSh(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				uni.navigateTo({
					url:"/pages/pagethree/pages/explain/explain?type=shop&id="+id
				})
			},
			toShUser(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				uni.navigateTo({
					url:"/pages/pagethree/pages/explain/explain?type=user&id="+id
				})
			},
			toOrderInfo(e){
				let index = e.target.dataset.index || e.currentTarget.dataset.index;
				if(this.topList[index].shop_evaluation_id){
					uni.navigateTo({
						url:"/pages/pageone/pages/ActivityDetails/ActivityDetails?id="+this.topList[index].shop_evaluation_id
					})
				}else{
					if(this.topList[index].shop_evaluation_order_id){
						uni.navigateTo({
							url:"/pages/pageone/pages/ActivityDetails/ActivityDetails?id="+this.topList[index].ShopEvaluationOrder.shop_evaluation_id
						})
					}
				}
			},
			getUser(){
				this.$u.api.userDetails({user_id:this.id}).then(res=>{
					//console.log(res)
					uni.setNavigationBarTitle({
						title:res.data.data.username
					})
				})
			},
			initMessage(){
				this.getTopList();
				uni.onSocketMessage(res=>{
					console.log(res,"````````````````````````````1")
					let list = JSON.parse(res.data);
					console.log(list,"````````````````````````````````2");return;
					let data = JSON.parse(res.data);
					if (data.state == 2 && data.num>0){
					  app.$vm.globalData.msgNum = data.num;
						uni.setTabBarBadge({
						  index: 2,
						  text: app.$vm.globalData.msgNum.toString()
						});
						app.$vm.setBadge(Number(app.$vm.globalData.msgNum));
					}else if(data.state == 2 && data.num == 0){
						app.$vm.globalData.msgNum = data.num;
						uni.hideTabBarRedDot({
							index:2
						})
						app.$vm.clearBadge();
					}
					if (data.vice_user_id==uni.getStorageSync("userId")){
					  app.$vm.globalData.msgNum = Number(app.$vm.globalData.msgNum) + 1;
						uni.setTabBarBadge({
						  index: 2,
						  text: app.$vm.globalData.msgNum.toString()
						});
						app.$vm.setBadge(Number(app.$vm.globalData.msgNum));
					}
					if(list.state==3){
						if(this.proId){
							this.sendEvaOrder(this.proId);
							this.proId = "";
							this.getTopList();
						}else{
							if(list.data.length==0&&this.page==1){
								console.log("``````````````````````````````")
								let obj = {};
								obj.main_user_id = uni.getStorageSync("userId");
								obj.vice_user_id = this.id;
								obj.type = 1;
								obj.news = "您好";
								app.$vm.sendMessage(obj);
								this.xxFlag = true;
							}
						}
						let loadIndex = 0;
						if(this.page==1){
							for(let i=0;i<list.data.length;i++){
								if(list.data[i].shop_evaluation_order_id){
									loadIndex++;
								}
							}
							let loadNowIndex = 0;
							this.list = list.data.map(cur=>{
								cur.timeFlag = false;
								if(cur.shop_evaluation_order_id && cur.type == 4){
									cur.ShopEvaluationOrder = {};
									this.$u.api.shopEvaluationOrderDetails({id:cur.shop_evaluation_order_id}).then(resl=>{
										cur.ShopEvaluationOrder = resl.data.details;
										if(cur.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(cur.ShopEvaluationOrder.ShareImage[0].image_url)) {
												cur.ShopEvaluationOrder.titleImage = this.getImage(cur.ShopEvaluationOrder.ShareImage[0].image_url);
												cur.ShopEvaluationOrder.imgType = true;
											} else {
												cur.ShopEvaluationOrder.titleImage = this.getVideoUrl(cur.ShopEvaluationOrder.ShareImage[0].image_url);
												cur.ShopEvaluationOrder.imgType = false;
											}
										}else{
											cur.ShopEvaluationOrder.imgType = true;
										}
										loadNowIndex++;
										if(loadNowIndex == loadIndex){
											this.$nextTick(()=>{
												this.setPageScrollTo('#chatItem'+list.data[0].id);
											});
										}
									})
								}else{
									if(cur.shop_evaluation_id && cur.type==4){
										cur.ShopEvaluation = {};
										this.$u.api.shopEvaluationDetails({id:cur.shop_evaluation_id}).then(resl=>{
											cur.ShopEvaluation = resl.data.details;
											loadNowIndex++;
											if(loadNowIndex == loadIndex){
												this.$nextTick(()=>{
													this.setPageScrollTo('#chatItem'+list.data[0].id);
												});
											}
										})
									}
								}
								return cur;
							});
						}else{
							let loadNowIndex = 0;
							this.list = this.list.concat(list.data.map(cur=>{
								cur.timeFlag = false;
								if(cur.shop_evaluation_order_id && cur.type==4){
									cur.ShopEvaluationOrder = {};
									this.$u.api.shopEvaluationOrderDetails({id:cur.shop_evaluation_order_id}).then(resl=>{
										cur.ShopEvaluationOrder = resl.data.details;
										if(cur.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(cur.ShopEvaluationOrder.ShareImage[0].image_url)) {
												cur.ShopEvaluationOrder.titleImage = this.getImage(cur.ShopEvaluationOrder.ShareImage[0].image_url);
												cur.ShopEvaluationOrder.imgType = true;
											} else {
												cur.ShopEvaluationOrder.titleImage = this.getVideoUrl(cur.ShopEvaluationOrder.ShareImage[0].image_url);
												cur.ShopEvaluationOrder.imgType = false;
											}
										}else{
											cur.ShopEvaluationOrder.imgType = true;
										}
										loadNowIndex++;
										if(loadNowIndex == loadIndex){
											this.$nextTick(()=>{
												this.setPageScrollTo('#chatItem'+list.data[0].id);
											});
										}
									})
								}else{
									if(cur.shop_evaluation_id && cur.type == 4){
										cur.ShopEvaluation = {};
										this.$u.api.shopEvaluationDetails({id:cur.shop_evaluation_id}).then(resl=>{
											cur.ShopEvaluation = resl.data.details;
											loadNowIndex++;
											if(loadNowIndex == loadIndex){
												this.$nextTick(()=>{
													this.setPageScrollTo('#chatItem'+list.data[0].id);
												});
											}
										})
									}
								}
								return cur;
							}));
						}
						for(let i=0;i<this.list.length;i++){
							if(i!=0){
								console.log(new Date(this.list[i].create_time).getTime()-new Date(this.list[i-1].create_time).getTime())
								if(Math.abs(new Date(this.list[i].create_time).getTime()-new Date(this.list[i-1].create_time).getTime())>5*60*1000){
									this.list[i].timeFlag = true;
								}
							}else{
								this.list[0].timeFlag = true;
							}
						}
						if(list.data.length>0){
							this.moreFlag = true;
						}else{
							this.moreFlag = false;
						}
						if(this.page!=1||loadIndex==0){
							this.$nextTick(()=>{
								this.setPageScrollTo('#chatItem'+list.data[0].id);
							});
						}
					}
					if((list.main_user_id==this.userId)||(list.main_user_id==this.id&&list.vice_user_id==this.userId)){
						if(list.is_tips==1){
							this.list.unshift(list);
							this.ismenu = false;
							this.$nextTick(()=>{
								// this.setPageScrollTo('#chatItem'+this.list[0].id);
								this.setPageScrollTo("test");
							});
						}else{
							list.timeFlag = false;
							if(list.shop_evaluation_order_id){
								list.ShopEvaluationOrder = {};
								this.$u.api.shopEvaluationOrderDetails({id:list.shop_evaluation_order_id}).then(resl=>{
									list.ShopEvaluationOrder = resl.data.details;
									if(list.ShopEvaluationOrder.ShareImage.length>0){
										if (app.$vm.isImage(list.ShopEvaluationOrder.ShareImage[0].image_url)) {
											list.ShopEvaluationOrder.titleImage = this.getImage(list.ShopEvaluationOrder.ShareImage[0].image_url);
											list.ShopEvaluationOrder.imgType = true;
										} else {
											list.ShopEvaluationOrder.titleImage = this.getVideoUrl(list.ShopEvaluationOrder.ShareImage[0].image_url);
											list.ShopEvaluationOrder.imgType = false;
										}
									}else{
										list.ShopEvaluationOrder.imgType = true;
									}
									this.getTopList();
								})
							}else{
								if(list.shop_evaluation_id){
									list.ShopEvaluation = {};
									this.$u.api.shopEvaluationDetails({id:list.shop_evaluation_id}).then(resl=>{
										list.ShopEvaluation = resl.data.details;
										this.getTopList();
									})
								}
							}
							this.list.unshift(list);
							this.ismenu = false;
							this.$nextTick(()=>{
								// this.setPageScrollTo('#chatItem'+this.list[0].id);
								this.setPageScrollTo("test");
							});
						}
					}
					if(list.user_id){
						if(list.news_id){
							for(let i=0;i<this.topList.length;i++){
								if(this.topList[i].id == list.news_id){
									let dataobjs = JSON.parse(JSON.stringify(this.topList[i]));
									dataobjs.ShopEvaluationOrder = {};
									dataobjs.shop_evaluation_order_id = list.shop_evaluation_order_id;
									this.$u.api.shopEvaluationOrderDetails({id:dataobjs.shop_evaluation_order_id}).then(resl=>{
										dataobjs.ShopEvaluationOrder = resl.data.details;
										if(dataobjs.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url)) {
												dataobjs.ShopEvaluationOrder.titleImage = this.getImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = true;
											} else {
												dataobjs.ShopEvaluationOrder.titleImage = this.getVideoUrl(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = false;
											}
										}else{
											dataobjs.ShopEvaluationOrder.imgType = true;
										}
										let timer = null;
										let upTime = new Date().getTime() - new Date(dataobjs.ShopEvaluationOrder.update_time.replace(/-/g,"/")).getTime();
										let times = 0;
										if(dataobjs.ShopEvaluationOrder.type==0||dataobjs.ShopEvaluationOrder.type==2||dataobjs.ShopEvaluationOrder.type==3||dataobjs.ShopEvaluationOrder.type==5||dataobjs.ShopEvaluationOrder.type==7){
											times = 48*60*60*1000;
										}else if(dataobjs.ShopEvaluationOrder.type==1||dataobjs.ShopEvaluationOrder.type==4||dataobjs.ShopEvaluationOrder.type==6){
											times = 72*60*60*1000;
										}
										let disTime = Math.floor((times - upTime)/1000);
										console.log(disTime)
										if(disTime<=0){
											dataobjs.timeStr = "0天0时0分0秒";
										}else{
											console.log(this.getDayTime(disTime))
											dataobjs.timeStr = this.getDayTime(disTime);
											timer = setInterval(()=>{
												disTime = disTime - 1;
												dataobjs.timeStr = this.getDayTime(disTime);
												if(disTime<=0){
													clearInterval(timer);
												}
											},1000)
										}
										this.topList.splice(i,1,dataobjs);
									})

								}
							}
							for(let i=0;i<this.list.length;i++){
								if(this.list[i].id == list.news_id){
									let dataobjs = JSON.parse(JSON.stringify(this.list[i]));
									dataobjs.ShopEvaluationOrder = {};
									dataobjs.shop_evaluation_order_id = list.shop_evaluation_order_id;
									this.$u.api.shopEvaluationOrderDetails({id:dataobjs.shop_evaluation_order_id}).then(resl=>{
										dataobjs.ShopEvaluationOrder = resl.data.details;
										if(dataobjs.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url)) {
												dataobjs.ShopEvaluationOrder.titleImage = this.getImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = true;
											} else {
												dataobjs.ShopEvaluationOrder.titleImage = this.getVideoUrl(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = false;
											}
										}else{
											dataobjs.ShopEvaluationOrder.imgType = true;
										}
										this.list.splice(i,1,dataobjs);
									})

								}
							}
						}else{
							let topListArr = JSON.parse(JSON.stringify(this.topList));
							for(let i=0;i<topListArr.length;i++){
								if(topListArr[i].ShopEvaluationOrder && (topListArr[i].ShopEvaluationOrder.id == list.shop_evaluation_order_id)){
									let dataobjs = JSON.parse(JSON.stringify(topListArr[i]));
									this.$u.api.shopEvaluationOrderDetails({id:dataobjs.shop_evaluation_order_id}).then(resl=>{
										dataobjs.ShopEvaluationOrder = resl.data.details;
										if(dataobjs.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url)) {
												dataobjs.ShopEvaluationOrder.titleImage = this.getImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = true;
											} else {
												dataobjs.ShopEvaluationOrder.titleImage = this.getVideoUrl(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = false;
											}
										}else{
											dataobjs.ShopEvaluationOrder.imgType = true;
										}
										for(let il=0;il<this.topList.length;il++){
											if(this.topList[il].ShopEvaluationOrder && (this.topList[il].ShopEvaluationOrder.id == list.shop_evaluation_order_id)){
												this.topList.splice(il,1,dataobjs);
											}
										}
									})
								}
							}
							let listArr = JSON.parse(JSON.stringify(this.list));
							for(let i=0;i<listArr.length;i++){
								if(listArr[i].ShopEvaluationOrder && (listArr[i].ShopEvaluationOrder.id == list.shop_evaluation_order_id)){
									let dataobjs = JSON.parse(JSON.stringify(listArr[i]));
									this.$u.api.shopEvaluationOrderDetails({id:dataobjs.shop_evaluation_order_id}).then(resl=>{
										dataobjs.ShopEvaluationOrder = resl.data.details;
										if(dataobjs.ShopEvaluationOrder.ShareImage.length>0){
											if (app.$vm.isImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url)) {
												dataobjs.ShopEvaluationOrder.titleImage = this.getImage(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = true;
											} else {
												dataobjs.ShopEvaluationOrder.titleImage = this.getVideoUrl(dataobjs.ShopEvaluationOrder.ShareImage[0].image_url);
												dataobjs.ShopEvaluationOrder.imgType = false;
											}
										}else{
											dataobjs.ShopEvaluationOrder.imgType = true;
										}
										for(let il=0;il<this.list.length;il++){
											if(this.list[il].ShopEvaluationOrder && (this.list[il].ShopEvaluationOrder.id == list.shop_evaluation_order_id)){
												this.list.splice(il,1,dataobjs);
											}
										}
									})
								}
							}
						}
					}
					if(this.list.length>=5){
						let inid = uni.getStorageSync("userId");
						let inFlag = false;
						for(let i=0;i<this.list.length;i++){
							if(this.list[i].main_user_id != inid && this.list[i].type != 4){
								inFlag = true;
							}
						}
						this.xxFlag = inFlag;
					}else{
						this.xxFlag = true;
					}
				})
			},
			sureAppoint(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let type = e.target.dataset.type || e.currentTarget.dataset.type;
				let obj = {};
				obj.id = id;
				if(type=="refuse"){
					obj.is_agree = 2;
				}else{
					obj.is_agree = 1;
				}
				this.$u.api.shopEvaluationOrderShopRefuseAppointmentTime(obj).then(res=>{
					if(type=="refuse"){
						this.$refs.uToast.show({
							title:"已驳回预约",
							type:"success",
							duration:2000
						})
					}else{
						this.$refs.uToast.show({
							title:"已确认预约",
							type:"success",
							duration:2000
						})
					}
				})
			},
			getTopList(){
				this.$u.api.newsGetList({to_user_id:this.id,user_id:uni.getStorageSync("userId")}).then(res=>{
					this.topList = res.data.list.map(cur=>{
						cur.timeFlag = false;
						if(cur.shop_evaluation_order_id){
							cur.ShopEvaluationOrder = {};
							this.$u.api.shopEvaluationOrderDetails({id:cur.shop_evaluation_order_id}).then(resl=>{
								cur.ShopEvaluationOrder = resl.data.details;
								let timer = null;
								let upTime = new Date().getTime() - new Date(cur.ShopEvaluationOrder.update_time.replace(/-/g,"/")).getTime();
								let times = 0;
								if(cur.ShopEvaluationOrder.type==0||cur.ShopEvaluationOrder.type==2||cur.ShopEvaluationOrder.type==5||cur.ShopEvaluationOrder.type==7){
									times = 48*60*60*1000;
								}else if(cur.ShopEvaluationOrder.type==1||cur.ShopEvaluationOrder.type==4||cur.ShopEvaluationOrder.type==6){
									times = 72*60*60*1000;
								}else if(cur.ShopEvaluationOrder.type==3){
									times = new Date(cur.ShopEvaluationOrder.appointment_time).getTime() - new Date().getTime();
								}
								let disTime = Math.floor((times - upTime)/1000);
								console.log(disTime)
								if(disTime<=0){
									cur.timeStr = "0天0时0分0秒";
								}else{
									console.log(this.getDayTime(disTime))
									cur.timeStr = this.getDayTime(disTime);
									timer = setInterval(()=>{
										disTime = disTime - 1;
										cur.timeStr = this.getDayTime(disTime);
										if(disTime<=0){
											clearInterval(timer);
										}
									},1000)
								}
								if(cur.ShopEvaluationOrder.ShareImage.length>0){
									if (app.$vm.isImage(cur.ShopEvaluationOrder.ShareImage[0].image_url)) {
										cur.ShopEvaluationOrder.titleImage = this.getImage(cur.ShopEvaluationOrder.ShareImage[0].image_url);
										cur.ShopEvaluationOrder.imgType = true;
									} else {
										cur.ShopEvaluationOrder.titleImage = this.getVideoUrl(cur.ShopEvaluationOrder.ShareImage[0].image_url);
										cur.ShopEvaluationOrder.imgType = false;
									}
								}else{
									cur.ShopEvaluationOrder.imgType = true;
								}
							})
						}else{
							if(cur.shop_evaluation_id){
								cur.ShopEvaluation = {};
								let timer = null;
								let upTime = new Date().getTime() - new Date(cur.create_time.replace(/-/g,"/")).getTime();
								let times = 48*60*60*1000;
								let disTime = Math.floor((times - upTime)/1000);
								if(disTime<=0){
									cur.timeStr = "0天0时0分0秒";
								}else{
									cur.timeStr = this.getDayTime(disTime);
									timer = setInterval(()=>{
										disTime = disTime - 1;
										cur.timeStr = this.getDayTime(disTime);
										if(disTime<=0){
											clearInterval(timer);
										}
									},1000)
								}
								this.$u.api.shopEvaluationDetails({id:cur.shop_evaluation_id}).then(resl=>{
									cur.ShopEvaluation = resl.data.details;
								})
							}
						}
						return cur;
					});
					if(this.topList.length==0){
						this.topflag = false;
					}
				})
			},
			getDayTime(time){
				let min = Math.floor(time/60);
				let sec = time%60;
				let hour = Math.floor(min/60);
				let mins = min%60;
				return hour + "时" + mins + "分" + sec + "秒";
			},
			previewVideo(e){
				let url = e.target.dataset.file || e.currentTarget.dataset.file;
				uni.navigateTo({
					url:"/pages/pageone/pages/videoPage/videoPage?url="+url
				})
				// this.videoUrl = url;
			},
			getVideoUrl(url) {
				return app.$vm.globalData.imgBaseUrl + url + app.$vm.globalData.videoThumb;
			},
			downloadVideo(e){
				let file = e.target.dataset.file || e.currentTarget.dataset.file;
				uni.showActionSheet({
					itemList:["下载"],
					success:res=>{
						if(res.tapIndex==0){
							uni.downloadFile({
								url: file,
								success:rem=>{
									uni.saveVideoToPhotosAlbum({
										filePath: rem.tempFilePath,
										success:rep=>{
											this.$refs.uToast.show({
												title:"已保存至相册",
												type:"success",
												duration:2000
											})
										}
									})
								}
							})
						}
					}
				})
			},
			toSubmit(){
				this.markFlag = false;
				this.$refs.numberPad.open("需冻结"+this.djMoney+"元");
			},
			checkMsg(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let type = e.target.dataset.type || e.currentTarget.dataset.type;
				if (type) {
					uni.navigateTo({
						url: "/pages/pagetwo/pages/FindDetail/FindDetail?id=" + id
					})
				} else {
					uni.navigateTo({
						url: "/pages/pagefive/pages/VideoDetail/VideoDetail?id=" + id
					})
				}
			},
			toRelease(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let ids = e.target.dataset.ids || e.currentTarget.dataset.ids;
				if(ids){
					uni.navigateTo({
						url:"/pages/pagefour/pages/Release/Release?id="+ids+"&orderid="+id
					})
				}else{
					uni.navigateTo({
						url:"/pages/pagefour/pages/Release/Release?orderid="+id
					})
				}

			},
			sureOver(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let obj = {};
				obj.id = id;
				this.$u.api.shopEvaluationOrderShopConfirmRelease(obj).then(res=>{
					this.$refs.uToast.show({
						title:"已确认完结",
						type:"success",
						duration:2000
					})
				})
			},
			noOver(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let obj = {};
				obj.id = id;
				this.$u.api.shopEvaluationOrderShopReject(obj).then(res=>{
					this.$refs.uToast.show({
						title:"已驳回",
						type:"success",
						duration:2000
					})
				})
			},
			sureRelease(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let obj = {};
				obj.id = id;
				this.$u.api.shopEvaluationOrderUserConfirmRelease(obj).then(res=>{
					this.$refs.uToast.show({
						title:"已确认发布",
						type:"success",
						duration:2000
					})
				})
			},
			surePass(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let type = e.target.dataset.type || e.currentTarget.dataset.type;
				let obj = {};
				obj.id = id;
				if(type=="refuse"){
					obj.is_confirm = 2;
				}else if(type=="pass"){
					obj.is_confirm = 1;
				}
				this.$u.api.shopEvaluationOrderShopConfirmShare(obj).then(res=>{
					if(type=="refuse"){
						this.$refs.uToast.show({
							title:"已驳回稿件",
							type:"success",
							duration:2000
						})
					}else if(type=="pass"){
						this.$refs.uToast.show({
							title:"已确认稿件",
							type:"success",
							duration:2000
						})
					}

				})
			},
			sureToStore(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let obj = {};
				obj.id = id;
				this.nowOrderId = id;
				this.sureToStoreFlag = true;
			},
			sureToStoreFun(){
				let obj = {};
				obj.id = this.nowOrderId;
				this.sureToStoreFlag = false;
				uni.chooseImage({
					count:1,
					sourceType:["camera"],
					sizeType:["compressed"],
					success:result=>{
						uni.showLoading({
							title:"上传中..."
						})
						app.$vm.updataAvator(result.tempFilePaths[0]).then(res=>{
							//console.log(res)
							obj.arrival_image = res;
							this.initMessage();
							this.$u.api.shopEvaluationOrderUserConfirmBePresent(obj).then(res=>{
								uni.hideLoading()
								this.$refs.uToast.show({
									title:"已确认到店",
									type:"success",
									duration:2000
								})
							})
						});
					},
					fail:err=>{
						console.log(err)
						if(err.errMsg!='chooseImage:fail cancel'){
							app.$vm.checkAuth("scope.camera").then(resultConfirm=>{
								if(resultConfirm){
									uni.showModal({
										title:"系统繁忙，请稍后再试"
									})
								}else{
									uni.showModal({
										title:"请检查摄像头和相册权限后重试"
									})
								}
							})
						}
					}
				})
			},
			selectTime(e){
				console.log(e)
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let pid = e.target.dataset.pid || e.currentTarget.dataset.pid;
				this.orderIds = id;
				this.appointment_time = Math.floor(new Date(e.detail.value).getTime()/1000);
				uni.$on("confirmTime",(shopId)=>{
					console.log(shopId)
					let obj = {};
					obj.id = this.orderIds;
					obj.appointment_time = this.appointment_time;
					obj.shop_id = shopId;
					this.$u.api.shopEvaluationOrderUserConfirmAppointmentTime(obj).then(res=>{
						this.$refs.uToast.show({
							title:"已预约到店时间",
							type:"success",
							duration:2000
						})
						uni.$off("confirmTime");
					})
				})
				uni.navigateTo({
					url:"/pages/pageone/pages/choiceStore/choiceStore?userid="+pid
				})
			},
			sureOrder(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let money = e.target.dataset.money || e.currentTarget.dataset.money;
				let arr = [];
				// #ifdef MP-WEIXIN
				arr = ["微信支付","余额支付"];
				// #endif
				// #ifdef APP
				arr = ["支付宝支付","微信支付","余额支付"];
				// #endif
				uni.showActionSheet({
					itemList:arr,
					success:res=>{
						let obj = {};
						obj.id = id;
						// #ifdef MP-WEIXIN
						if(res.tapIndex==0){
							obj.pay_type = 10;
							this.sureOrderData = obj;
							this.sureOrderFun();
						}else if(res.tapIndex==1){
							obj.pay_type = 40;
							this.status = "qr";
							this.sureOrderData = obj;
							this.$refs.numberPad.open("需支付"+money+"元");
						}
						// #endif
						// #ifdef APP
						if(res.tapIndex==0){
							obj.pay_type = 30;
							this.sureOrderData = obj;
							this.sureOrderFun();
						}else if(res.tapIndex==1){
							obj.pay_type = 20;
							this.sureOrderData = obj;
							this.sureOrderFun();
						}else if(res.tapIndex==2){
							obj.pay_type = 40;
							this.status = "qr";
							this.sureOrderData = obj;
							this.$refs.numberPad.open("需支付"+money+"元");
						}
						// #endif
					}
				})
			},
			sureOrderFun(){
				this.$u.api.shopEvaluationOrderConfirm(this.sureOrderData).then(res=>{
					if(this.sureOrderData.pay_type==10||this.sureOrderData.pay_type==20){
						wxPayment(JSON.parse(res.data.data.sign)).then(rep=>{
							this.$refs.uToast.show({
								title:"支付成功",
								type:"success",
								duration:2000
							})
						});
					}else if(this.sureOrderData.pay_type==30){
						zfbPayment(res.data.data).then(rep => {
							this.$refs.uToast.show({
								title:"支付成功",
								type:"success",
								duration:1000
							})
						})
					}else if(this.sureOrderData.pay_type==40){
						this.$refs.uToast.show({
							title:"支付成功",
							type:"success",
							duration:2000
						})
					}
				})
			},
			toMine(e){
				console.log(e)
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				uni.navigateTo({
					url:"/pages/pageone/pages/Business-card/Business-card?id="+id
				})
			},
			refuse(e){
				uni.showModal({
					content:"确定要拒绝吗?",
					success:res=>{
						if(res.confirm){
							let id = e.target.dataset.id || e.currentTarget.dataset.id;
							let id1 = e.target.dataset.ids || e.currentTarget.dataset.ids;
							let obj = {};
							obj.id = id;
							obj.shop_evaluation_id = id1;
							app.$vm.sendMessage(obj);
							let objs = {};
							objs.main_user_id = uni.getStorageSync("userId");
							objs.vice_user_id = this.id;
							objs.type = 1;
							objs.news = "不好意思，先不参加了";
							app.$vm.sendMessage(objs);
						}
					}
				})

			},
			accept(e){
				let id = e.target.dataset.id || e.currentTarget.dataset.id;
				let id1 = e.target.dataset.ids || e.currentTarget.dataset.ids;
				let money = e.target.dataset.money || e.currentTarget.dataset.money;
				this.acceptId = id;
				this.acceptShopId = id1;
				this.status = "yq";
				this.djMoney = money;
				this.markFlag = true;
				// this.$refs.numberPad.open("需冻结"+money+"元");
			},
			closeChange(e){
				if(this.status == "yq"){
					// 接受邀请
					let obj = {};
					obj.payPassword = e;
					obj.shop_evaluation_id = this.acceptId;
					// obj.shop_id = this.acceptShopId;
					if(app.$vm.globalData.shareid&&app.$vm.globalData.cpid==obj.shop_evaluation_id){
						obj.share_user_id = app.$vm.globalData.shareid;
					}
					obj.is_accept = 1;
					this.$u.api.shopEvaluationOrderAdd(obj).then(res=>{
						//console.log(res)
						this.$refs.uToast.show({
							title:"已接受，请等待商家确认",
							type:"success",
							duration:2000
						})
					})
					.catch(err=>{
						console.log(err)
						if(err.message == "请先设置支付密码"){
							uni.navigateTo({
								url:"/pages/pageone/pages/ChangePassword1/ChangePassword1"
							})
						}else if(err.message == "您尚未认证名片"){
							uni.navigateTo({
								url:"/pages/pagefour/pages/real/real"
							})
						}
					})
				}else if(this.status == "qr"){
					// 商家确认
					this.sureOrderData.pay_password = e;
					this.sureOrderFun();
				}
			},
			sendEva(id,shop_id){
				let obj = {};
				obj.main_user_id = uni.getStorageSync("userId");
				obj.vice_user_id = this.id;
				obj.shop_id = shop_id;
				obj.type = 4;
				obj.shop_evaluation_id = id;
				app.$vm.sendMessage(obj);
			},
			sendEvaOrder(id){
				let obj = {};
				obj.main_user_id = uni.getStorageSync("userId");
				obj.vice_user_id = this.id;
				obj.type = 4;
				obj.shop_evaluation_order_id = id;
				app.$vm.sendMessage(obj);
			},
			getTabH(){
				this.ismenu = !this.ismenu;
				this.$nextTick(()=>{
					this.getIsMenuH();
				})
			},
			getIsMenuH(){
				return new Promise((resolve,reject)=>{
					let view = uni.createSelectorQuery().in(this).select("#menuList1");
					view.boundingClientRect((res) => {
						//console.log(res)
						this.ismenuHeight = res.height;
						resolve();
					}).exec();
				})

			},
			setPageScrollTo(selector){
				this.$nextTick(()=>{
					// #ifdef MP-WEIXIN
					uni.pageScrollTo({
					    selector: selector,
					    duration: 0
					});
					// #endif
					// #ifdef APP
					if(selector == 'test'){
						wx.pageScrollTo({
						    scrollTop: 99999999999999999999999,
						    duration: 0
						});
					}else{
						let view = uni.createSelectorQuery().in(this).select(selector);
						view.boundingClientRect((res) => {
							wx.pageScrollTo({
							    scrollTop: res.top,
							    duration: 0
							});
						}).exec();
					}

					// #endif
				})

			},
			previewImg(e){
				let url = e.target.dataset.url || e.currentTarget.dataset.url;
				let urls = [];
				for(let i=0;i<this.list.length;i++){
					if(this.list[i].type==2){
						urls.push(this.getImage(this.list[i].file));
					}
				}
				uni.previewImage({
					current:url,
					urls:urls
				})
			},
			getImage(url){
				if(url&&(url.indexOf("http://")!=-1||url.indexOf("https://")!=-1)){
					return url;
				}else{
					return app.$vm.globalData.imgBaseUrl + url;
				}
			},
			getNum(text){
			    let value = text.replace(/[^0-9]/ig,"");
			    return value;
			},
			sendMsg(){
				this.inpFlag = true;
				if(!this.xxFlag){
					this.$refs.uToast.show({
						title:"请等待对方回复后进行交流11111",
						type:"error",
						duration:2000
					})
					return false;
				}
				if(!this.news.trim()){
					return false;
				}
				if(this.getNum(this.news).length == 11){
				    let phNum = this.getNum(this.news),
				    phnumAfter = "****";
					this.news = this.news.replace(phNum,phnumAfter);
				}
				let obj = {};
				obj.main_user_id = uni.getStorageSync("userId");
				obj.vice_user_id = this.id;
				obj.type = 1;
				obj.news = this.news;
				this.news = "";
				app.$vm.sendMessage(obj);
			},
			getMessage(){
				let obj = {};
				obj.contacts = 3;
				obj.vice_user_id = this.id;
				obj.page = this.page;
				app.$vm.sendMessage(obj);
			},
			//选择视频
			SelectVideo(){
				if(!this.xxFlag){
					this.$refs.uToast.show({
						title:"请等待对方回复后进行交流22222",
						type:"error",
						duration:2000
					})
					return false;
				}
				let _this = this;
				uni.chooseVideo({
				  count: 1,
				  sourceType: ['camera', 'album'],
				  success: function (result) {
					  console.log(result)
						let name = new Date().getTime();
						app.$vm.updataAvator(result.tempFilePath).then(res=>{
							//console.log(res)
							_this.initMessage();
							_this.sendVideo(name,res);
						});
				  //   self.videoObj = res;
						// self.progress = 0;
						// uni.uploadFile({
						//   url: 'https://www.example.com/upload', //仅为示例，非真实的接口地址
						//   filePath: res.tempFilePaths,
						//   name: 'file',
						//   formData: {
						//     'user': 'test'
						//   },
						//   success: (uploadFileRes) => {
						//     console.log(uploadFileRes.data);
						//   }
						// });
				  },
				  fail:err=>{
					  if(err.errMsg!='chooseImage:fail cancel'){
					  	app.$vm.checkAuth("scope.camera").then(resultConfirm=>{
					  		if(resultConfirm){
					  			uni.showModal({
					  				title:"系统繁忙，请稍后再试"
					  			})
					  		}else{
					  			uni.showModal({
					  				title:"请检查摄像头和相册权限后重试"
					  			})
					  		}
					  	})
					  }
				  }
				});
			},
			//创建动画
			createAnimation(){
				this.animation = uni.createAnimation({
				  duration: 1000,
				  timingFunction: 'ease',
				})
				this.hideanimation = true;
				this.timer = setInterval(()=>{
					console.log(66);
					this.animation.rotate(180*this.ind).step();
					// this.animation.scale(2, 2).step()
					this.animationData = this.animation.export();
					this.ind++;
				},1000)
			},
			// uploadHeadImg(){
			// 	let _this = this;
			// 	uni.chooseImage({
			// 		count:1,
			// 		success(result) {
			// 			app.$vm.updataAvator(result.tempFilePaths[0]).then(res=>{
			// 				//console.log(res)
			// 				_this.headImg = res;
			// 			});
			// 		}
			// 	})
			// },
			//选择图片
			sendImg(name,url){
				let obj = {};
				obj.main_user_id = uni.getStorageSync("userId");
				obj.vice_user_id = this.id;
				obj.type = 2;
				obj.file_name = name;
				obj.file = url;
				app.$vm.sendMessage(obj);
			},
			sendVideo(name,url){
				let obj = {};
				obj.main_user_id = uni.getStorageSync("userId");
				obj.vice_user_id = this.id;
				obj.type = 3;
				obj.file_name = name;
				obj.file = url;
				app.$vm.sendMessage(obj);
			},
			SelectPicture(){
				if(!this.xxFlag){
					this.$refs.uToast.show({
						title:"请等待对方回复后进行交流33333",
						type:"error",
						duration:2000
					})
					return false;
				}
				let _this = this;
				uni.chooseImage({
					count:1,
					sizeType:['compressed'],
					success(result) {
						let name = result.tempFiles[0].name;
						app.$vm.updataAvator(result.tempFilePaths[0]).then(res=>{
							//console.log(res)
							_this.initMessage();
							_this.sendImg(name,res);
						});
					},
					fail:err=>{
						console.log(err)
						if(err.errMsg!='chooseImage:fail cancel'){
							app.$vm.checkAuth("scope.camera").then(resultConfirm=>{
								if(resultConfirm){
									uni.showModal({
										title:"系统繁忙，请稍后再试"
									})
								}else{
									uni.showModal({
										title:"请检查摄像头和相册权限后重试"
									})
								}
							})
						}
					}
				})
			},
			toEvaluation(){
				if(!this.xxFlag){
					this.$refs.uToast.show({
						title:"请等待对方回复后进行交流44444",
						type:"error",
						duration:2000
					})
					return false;
				}
				uni.navigateTo({
					url:"/pages/pagetwo/pages/Evaluation/Evaluation?id="+this.id+"&id1="+uni.getStorageSync("userId")
				})
			}
		}
	}
</script>

<style scoped lang="less">
	// ````````````````````````````````````````````````
	.toastMark{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99998;
		background: rgba(0,0,0,.2);
	}
	.toastWrap{
		width: 540upx;
		padding-top: 56upx;
		border-radius: 12upx;
		background: white;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		z-index: 99999;
	}
	.toastWrapTit{
		font-size: 32upx;
		font-weight: bold;
		color: #000000;
		margin-bottom: 32upx;
		width: 100%;
		box-sizing: border-box;
		padding: 0 60upx;
	}
	.toastWrapTit>text{
		font-size: 32upx;
		font-weight: bold;
		color: #FF5555;
	}
	.toastWrapCon{
		font-size: 28upx;
		line-height: 36upx;
		color: #878787;
		width: 100%;
		box-sizing: border-box;
		padding: 0 60upx;
	}
	.toastBtn{
		display: flex;
		margin-top: 40upx;
		border-top: 2upx solid #DDDDDD;
		align-items: center;
	}
	.later{
		width: 50%;
		height: 98upx;
		line-height: 98upx;
		text-align: center;
		border-right: 2upx solid #DDDDDD;
		font-size: 36upx;
		color: #000000;
	}
	.onSure{
		width: 50%;
		height: 98upx;
		line-height: 98upx;
		text-align: center;
		font-size: 36upx;
		color: #108DE9;
	}
	// `````````````````````````````````````````````````



	.platformView{
		width: 68upx;
		height: 32upx;
		border-radius: 0 20upx 0 20upx;
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		left: 0;
		bottom: 0;
		z-index: 99;
	}
	.platformView1{
		width: 68upx;
		height: 32upx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 12upx;
		border-radius: 4upx;
		overflow: hidden;
	}


	.orderInfo{
		width: 528upx;
		box-sizing: border-box;
		padding: 0 24upx;
		background: white;
		border-radius: 20upx;
		position: relative;
	}
	.orderInfoT{
		padding: 24upx 0;
		display: flex;
	}
	.orderInfoTT{
		width: 112upx;
		height: 112upx;
		margin-right: 24upx;
		border-radius: 8upx;
		background-size: cover;
		background-position: center;
	}
	.orderInfoTR{
		width: calc(100% - 136upx);
	}
	.proName{
		font-size: 24upx;
		line-height: 30upx;
		margin-bottom: 16upx;
		color: #333333;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.proPrice{
		font-size: 20upx;
		line-height: 30upx;
		color: #FFAC3F;
		font-weight: bold;
		margin-bottom: 16upx;
	}
	.proMsg{
		display: flex;
	}
	.proMsg>view:nth-child(1){
		font-size: 20upx;
		line-height: 30upx;
		color: #999999;
		width: 62upx;
	}
	.proMsg>view:nth-child(2){
		width: calc(100% - 62upx);
		font-size: 20upx;
		line-height: 30upx;
		color: #999999;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}
	.orderInfoB{
		display: flex;
		justify-content: flex-end;
		// padding: 16upx 0;
		border-top: 2upx solid #EFEFEF;
	}
	.orderInfoB>view{
		padding: 16upx 0;
	}
	.operaBtn{
		height: 32upx;
		line-height: 32upx;
		padding: 0 16upx;
		background: linear-gradient(90deg, #FFAC3F 0%, #FC8643 100%);
		border-radius: 16upx;
		color: white;
		font-size: 16upx;

	}
	.operaBtn1{
		width: 160upx;
		height: 60upx;
		line-height: 60upx;
		// padding: 0 16upx;
		background: linear-gradient(90deg, #FFAC3F 0%, #FC8643 100%);
		border-radius: 30upx;
		color: white;
		font-size: 24upx;
		text-align: center;
		box-sizing: border-box;
	}
	.operaBtnCancel{
		height: 32upx;
		line-height: 32upx;
		padding: 0 16upx;
		background: #E5E5E5;
		border-radius: 16upx;
		color: #333333;
		font-size: 16upx;
	}
	.operaBtnCancel1{
		width: 160upx;
		height: 60upx;
		line-height: 56upx;
		// padding: 0 16upx;
		background: white;
		border-radius: 30upx;
		box-sizing: border-box;
		color: #333333;
		font-size: 24upx;
		border: 2upx solid #E5E5E5;
		text-align: center;
	}
	.orderInfoB>view{
		margin-right: 20upx;
	}
	.orderInfoB>view:last-child{
		margin-right: 0;
	}


	.contentVideo{
		width: 500upx;
		height: 500upx;
		background-size: cover;
		background-position: center;
	}


	.contentImg{
		width: 300upx;
		height: 300upx;
		background-size: cover;
		background-position: center;
	}
	.msgItem{
		margin-top: 32upx;
	}
	.msgItem:last-child{
		margin-top: 0;
	}
	.msgItemT{
		margin-bottom: 32upx;
		text-align: center;
		line-height: 20upx;
		font-size: 20upx;
		color: #D0D0D0;
	}
	.msgItemBSelf{
		display: flex;
	}
	.msgItemBSelf>.avator{
		width: 72upx;
		height: 72upx;
		border-radius: 50%;
		margin-right: 16upx;
		background-size: cover;
		background-position: center;
	}
	.msgItemBSelf>.sendNews{
		max-width: 528upx;
		box-sizing: border-box;
		padding: 18upx 24upx;
		border-radius: 20upx;
		font-size: 20upx;
		line-height: 32upx;
		color: #333333;
		background: white;
	}

	.msgItemBOther{
		display: flex;
		justify-content: flex-end;
	}
	.msgItemBOther>.avator{
		width: 72upx;
		height: 72upx;
		border-radius: 50%;
		margin-left: 16upx;
		background-size: cover;
		background-position: center;
	}
	.msgItemBOther>.sendNews{
		max-width: 528upx;
		box-sizing: border-box;
		padding: 18upx 24upx;
		border-radius: 20upx;
		font-size: 20upx;
		line-height: 32upx;
		color: #333333;
		background: white;
	}



.ChatBox{
	background-color: #F3F3F3;
	min-height: 100vh;
	// padding-top: 88upx;
	overflow: auto;
	.ChatBoxBoxTwo{
		padding-top: 246upx !important;
	}
	.ChatBoxBox{
		.ChatCont{
			padding: 32upx 24upx;
			display: flex;
			flex-direction: column-reverse;
		}
		.ChatBox_B{
			position: fixed;
			bottom: 0;
			width: 750upx;
			background-color: #fff;
			z-index: 100;
			.inputBox{
				display: flex;
				align-items: center;
				// width: 750upx;
				// height: 100upx;
				opacity: 1;
				border-bottom: 2upx solid #F5F5F5;
				padding: 24upx 48upx;
				justify-content: space-between;
				textarea{
					width: calc(100% - 250upx);
					min-height: 28upx;
					max-height: 84upx;
					// height: auto;
					background: #F5F5F5;
					opacity: 1;
					border-radius: 100upx;
					// margin-right: 48upx;
					padding: 16upx 24upx 16upx 24upx;
					font-size: 24upx;
					color: #333;
					margin-left: 30upx;
				}
				.sendTxt{
					padding: 0;
					margin: 0;
					background: white;
					line-height: 0;
					border: none;
					line-height: 32upx;
					margin-left: 0;
					margin-right: 0;
					border-radius: 0;
					margin-top: 0;
					margin-bottom: 0;
					outline: none;
					font-weight: 0;
					font-size: 28upx;
					padding: 14upx 0;
				}
				.sendTxt:after{
					border: none;
				}
			}
			.menuList{
				display: flex;
				align-items: center;
				padding: 50upx 48upx;
				.menuItem{
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					margin-right: 64upx;

					.menuImage{
						display: flex;
						justify-content: center;
						align-items: center;
						width: 96upx;
						height: 96upx;
						background: #F5F5F5;
						opacity: 1;
						border-radius: 20upx;
						image{
							width: 48upx;
							height: 48upx;
						}
					}
					.menuName{
						font-size: 24upx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						margin-top: 24upx;
						color: #333333;
					}
				}
			}
		}
	}
}
</style>
